import { get, post } from '@/utils/request'
export default {
  namespaced: true,
  state: {
    categoryData: {},
    mp: {}
  },
  mutations: {
    SET_CATEGORYDATA(state, data) {
      state.categoryData = data
    }
  },
  actions: {
    //  分页获取产品分类的数据
    async getCategoryDataVuex({ commit }, param) {
      let res = await get('/productCategory/pageQuery', param)

      // console.log(res.data);
      commit('SET_CATEGORYDATA', res.data)
    },
  },
  created() {

  },
}
